package MyArray;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.display();
        myArrayList.remove(2);
        myArrayList.display();

        System.out.println("====");
        System.out.println(myArrayList.indexOf(1));
        System.out.println(myArrayList.size());
        System.out.println(myArrayList.get(5));
//        System.out.println(myArrayList.get(8));
        List list = new MyArrayList();
        list.remove(1);
        myArrayList.clear();
        }
}
